package com.cx.mapper;

import com.cx.pojo.Page;
import com.cx.pojo.PageExample;
import java.util.List;

import com.cx.pojo.wjr.UserPage;
import com.cx.vo.AdminPageDetailInfo;
import com.cx.vo.czw.UserDetailPageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PageMapper {
    int countByExample(PageExample example);

    int deleteByExample(PageExample example);

    int deleteByPrimaryKey(Integer pageId);

    int insert(Page record);

    int insertSelective(Page record);

    List<Page> selectByExample(PageExample example);

    Page selectByPrimaryKey(Integer pageId);

    int updateByExampleSelective(@Param("record") Page record, @Param("example") PageExample example);

    int updateByExample(@Param("record") Page record, @Param("example") PageExample example);

    int updateByPrimaryKeySelective(Page record);

    int updateByPrimaryKey(Page record);

    UserDetailPageInfo selectDetailPageInfo(Integer pageNum);

    //查所有 根据条件
    List<UserDetailPageInfo> selectAllPageInfo();
    List<UserDetailPageInfo> selectPageByPageNum(Integer pageNum);
    List<UserDetailPageInfo> selectPageByReceivePhone(String receivePhone);
    List<UserDetailPageInfo> selectPageByReceiveName(String receiveName);

    List<AdminPageDetailInfo> selectByPageNum(Integer pageNum);
    List<AdminPageDetailInfo> selectByName(String name);
    List<AdminPageDetailInfo> selectByPhone(String phone);
    List<AdminPageDetailInfo> selectAll();
    List<UserPage> selectByMulti(UserPage userPage);

    int insertUserPageSend(UserPage userPage);
    int insertUserPageReceive(UserPage userPage);
    int insertUserPagePage(UserPage userPage);

    int updatePageSelective(UserPage userPage);
    int deleteByPageNum(Integer pageNum);

    List<UserPage> selectGrabbing(UserPage userPage);
    List<UserPage>selectByAny(UserPage userPage);

    List<UserPage> selectNew(UserPage userPage);
}